import '@unocss/reset/tailwind.css';
import 'virtual:uno.css';
import 'element-plus/dist/index.css';

import { createApp } from 'vue';
import { createPinia } from 'pinia';
import App from './App.vue';
import router from './router';
import { initAxios } from '@/service/AxiosService';
import DataVVue3 from '@kjgl77/datav-vue3';
import Particles from '@tsparticles/vue3';
import {loadFull} from "tsparticles"; // 确保导入正确
const app = createApp(App);

// 全局注册 Particles 组件
app.use(Particles, {
    init: async (engine) => {
        await loadFull(engine);
    }
});

app.use(createPinia());
app.use(router);
app.use(DataVVue3);

initAxios(); // 在挂载应用之前初始化 axios

app.mount('#app');